import { IsNotEmpty } from 'class-validator'

export class CreateArticelDto {
   @IsNotEmpty({ message: '标题不能为空' })
   title: string
   @IsNotEmpty({ message: '内容不能为空' })
   content: string
   @IsNotEmpty({ message: '请选择文章分类' })
   categoryId: number
   @IsNotEmpty({ message: '请上传图片' })
   previewImg: string
}
